'use strict';

const {Controller} = require('egg');
const ResponseUtil = require('../utils/ResponseUtil');
const HelperUtil = require('../utils/HelperUtil');
const StringUtil = require('../utils/StringUtil');
const Constant = require('../config/Constant');
const request = require('request');

class ComplaintController extends Controller {

    async addComplaint() {
        const res = await this.ctx.service.complaint.addComplaint();
        return this.ctx.body = ResponseUtil.success(res);
    }

    async getComplaintList(){
        const res = await this.ctx.service.complaint.getComplaintList();
        return this.ctx.body = ResponseUtil.success(res);
    }

}

module.exports = ComplaintController;
